package com.wfbi.security.chapter2;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wfbi
 * @version 1.0
 * @date 2021/12/27 1:31 PM
 */
@RestController
public class HelloController {
    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }

    @RequestMapping("/home1")
    public String hello1() {
        return "home1";
    }
    @RequestMapping("/home2")
    public String hello2() {
        return "home2";
    }
    @RequestMapping("/doLogout")
    public String logout() {
        return "doLogout";
    }

    @RequestMapping("/f1")
    public String f1() {
        return "f1";
    }
    @RequestMapping("/f2")
    public String f2() {
        return "f2";
    }
    @GetMapping("/")
    public String home() {
        return "home";
    }
}
